package com.scut.edu.wanyou.util;

public class UserToken {
	
	private int userid = -1;
	private String username = "";
	private String password = "";
	
	public UserToken(){}
	
	public boolean isValid()
	{
		return (userid!=-1)&&(!username.equals(""))&&(!password.equals(""));
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	};
	
}
